<%@ page import="java.sql.*" %>
<%@ page import="javax.sql.*" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="javax.servlet.jsp.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>发布房源信息</title>
</head>
<body>
<h2>发布房源信息</h2>
<form action="submit_room.jsp" method="post">
    <label for="roomType">房型:</label>
    <input type="text" id="roomType" name="roomType" required><br><br>
    
    <label for="price">价格:</label>
    <input type="number" id="price" name="price" required><br><br>
    
    <label for="description">描述:</label>
    <textarea id="description" name="description" required></textarea><br><br>
    
    <input type="submit" value="发布">
</form>
<%
//加载驱动
Class.forName("org.mariadb.jdbc.Driver");
//建立与数据库连接
Connection connection=DriverManager.getConnection("jdbc:mariadb://10.220.140.102:3366/studb11","stua","zHZUA65r");
%>
</body>
</html>